<template>
  <Breadcrumb style="margin:5px 0px;">
    <BreadcrumbItem>首页</BreadcrumbItem>
    <BreadcrumbItem>{{title1}}</BreadcrumbItem>
    <BreadcrumbItem>{{title2}}</BreadcrumbItem>
  </Breadcrumb>
</template>

<script>
import Config from "@/config";
export default {
  data() {
    return {
      title1: "",
      title2: ""
    };
  },
  mounted() {
    Config.menuList.forEach(r => {
      r.sublist.forEach(rr => {
        if (rr.path === this.$route.path) {
          this.title2 = rr.label;
          this.title1 = r.label;
        }
      });
    });
  }
};
</script>

<style>
</style>
